import { createRouter, createWebHistory } from 'vue-router'
import MainLayout from '@/components/MainLayout.vue'

export const routes = [
  {
    path: '/handsontable',
    name: 'Handsontable',
    component: () => import('@/views/Handsontable/index.vue')
  }
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: MainLayout,
      children: routes
    }
  ]
})

export default router
